package pattern.observer.events.mouseevent;

/**
 * @author juxiaojun
 * @since 2019-05-12
 */
public class MouseEventTest {
    public static void main(String[] args) {
        MouseEventCallback callback=new MouseEventCallback();
        Mouse mouse=new Mouse();
        mouse.addListener(MouseEventType.ON_CLICK,callback);
        mouse.addListener(MouseEventType.ON_FOCUS,callback);
        mouse.click();
        mouse.focus();
    }
}
